var chartDom = document.getElementById('echarts3');
var echarts3 = echarts.init(chartDom);
var option;

option = {
    tooltip: {
      trigger: 'item'
    },
    legend: {
      top: '5%',
      left: 'center'
    },
    series: [
      {
        name: '分配1',
        type: 'pie',
        radius: ['40%', '70%'],
        avoidLabelOverlap: false,
        itemStyle: {
          borderRadius: 10,
          borderColor: '#fff',
          borderWidth: 2
        },
        label: {
          show: false,
          position: 'center'
        },
        emphasis: {
          label: {
            show: true,
            fontSize: '40',
            fontWeight: 'bold'
          }
        },
        labelLine: {
          show: false
        },
        data: [
          { value: 1048, name: '分配0' },
          { value: 735, name: '分配1' },
          { value: 580, name: '分配2' },
          { value: 484, name: '分配3' },
          { value: 300, name: '分配4' }
        ]
      }
    ]
  };

  echarts3.setOption(option);